<template>
  <div id="app">
    <!--分享图片显示-->
    <div id="attenImg" class="atten_content" v-show="imgShow">
      <img id="imageId" src="http://pm.haowenwan.com/uploads/qrcode/subscribe_qrcode.png" alt=""/>
    </div>
    <div id="imgFade" class="atten_overlay" @click="imgShow = !imgShow" v-show="imgShow"></div>
    <keep-alive>
      <!-- v-wechat-title="$route.meta.title"-->
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
    <!--悬浮框返回首页按钮-->
    <div id="goHomeButton" class="goHomeButton" @click="goHome()">
      <img src="http://pm.haowenwan.com/public/static/images/icon_back_home.png" alt=""/>
    </div>
    <toast v-model="success" type="text" width='6.2rem' is-show-mask>{{msg}}</toast>
    <loading text="加载中" v-show="isShowLoading"></loading>
  </div>

</template>

<script>
import $ from 'jquery';
import { mapGetters } from 'vuex'
import { Loading, Toast, XDialog } from 'vux'

export default {
  name: "App",
  data() {
    return {
      show1: true,
      text: '加载中',
      inviter_id: 0,
      isSrc: '',
      imgShow: false,
      brower: '',
      mobile: '',
      sms_code: '',
      sms_codes: false,
      btntxt: '获取验证码',
      times: 0,
      success: false,
      msg: '',
      goHomeButton: false,
      aa:false
    };
  },
  computed: {
    ...mapGetters([
      'isShowLoading'
    ])
  },
  created() {
    //手机键盘覆盖输入框
    if (/Android/gi.test(navigator.userAgent)) {
      window.addEventListener('resize', function () {
        if (document.activeElement.tagName == 'INPUT' || document.activeElement.tagName == 'TEXTAREA') {
          window.setTimeout(function () {
            document.activeElement.scrollIntoViewIfNeeded();
          }, 0);
        }
      })
    }
    ;
    // this.getCode();
  },
  mounted() {
    this.buttonTouch();
  },
  components: {
    Loading,
    Toast,
    XDialog
  },
  methods: {
    returnBrower: function () {
      var agent = navigator.userAgent.toLowerCase();
      if (agent.match(/MicroMessenger/i) == "micromessenger") {
        return 'weixin';
      } else {
        return 'other';
      }
    },
    //悬浮按钮来回滑动
    buttonTouch: function () {
      var block = document.getElementById("goHomeButton");
      var oW, oH;
      block.addEventListener("touchstart", function (e) {
        var touches = e.touches[0];
        oW = touches.clientX - block.offsetLeft;
        oH = touches.clientY - block.offsetTop;
        document.addEventListener("touchmove", defaultEvent, false);
      }, false)

      block.addEventListener("touchmove", function (e) {
        var touches = e.touches[0];
        var oLeft = touches.clientX - oW;
        var oTop = touches.clientY - oH;
        if (oLeft < 0) {
          oLeft = 0;
        } else if (oLeft > document.documentElement.clientWidth - block.offsetWidth) {
          oLeft = (document.documentElement.clientWidth - block.offsetWidth);
        }
        block.style.left = oLeft + "px";
        block.style.top = oTop + "px";
      }, false);

      block.addEventListener("touchend", function () {
        document.removeEventListener("touchmove", defaultEvent, false);
      }, false);

      function defaultEvent(e) {
        e.preventDefault();
      };
    },
    getCode: function () {
      let _this = this;
      let curUrl = unescape(window.location.href).split('?')[1];
      if (curUrl == undefined) {
        this.inviter_id = 0;
      } else {
        this.inviter_id = curUrl.split('inviter/')[1];
      }
      let params = {
        inviter_member_id: this.inviter_id
      }
      $.ajax({
        url: '/los/api/member/login_check.json',
        type: 'POST',
        async: false,
        data: params,
        success: function (data, textStatus, jqXHR) {
          _this.brower = _this.returnBrower();
          if (data.code == 1) {
            if (data.data.member.fans_subscribe != 1) {
              _this.imgShow = true;
            } else {
              _this.imgShow = false;
            }
            sessionStorage.setItem("member_id", data.data.member.member_id);
            sessionStorage.setItem("member", JSON.stringify(data.data.member));
            sessionStorage.setItem("shop", JSON.stringify(data.data.shop));
            sessionStorage.setItem("isReload", true);
          } else {
            let curUrl = encodeURIComponent(window.location.href);
            if (_this.brower == 'weixin') {
              //添加浏览器类型
              window.location.href = '/los/api/oauth/auth/?remember_url=' + curUrl;
            } else {
              location.href = '#/Login'
            }
          }
        },
        error: function (xhr, textStatus) {
        }
      })
    },
    //悬浮框跳转到首页
    goHome: function () {
      this.$router.push({
        name: 'Home'
      })
    },
  }
}
</script>

<style lang="less">
  @import '~vux/src/styles/1px.less';
</style>

<style>
  body,
  dd,
  dl,
  figure,
  form,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  td,
  textarea {
    margin: 0;
    padding: 0;
  }

  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  * {
    touch-action: pan-y;
  }

  a {
    -webkit-tap-highlight-color: transparent;
  }

  #vux_view_box_body {
    padding-bottom: 1.6rem;
  }

  a:hover {
    text-decoration: none;
  }

  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }

  input[type=button],
  input[type=submit],
  input[type=file],
  button {
    cursor: pointer;
    -webkit-appearance: none;
  }

  input[type="number"] {
    -moz-appearance: textfield;
  }

  input:focus {
    outline: none;
  }

  /*返回键按钮*/

  #Home ~ #goHomeButton,
  #Category ~ #goHomeButton,
  #User ~ #goHomeButton,
  #Identify ~ #goHomeButton,
  #Auction ~ #goHomeButton,
  #Register ~ #goHomeButton,
  #Login ~ #goHomeButton,
  #ForgetPass ~ #goHomeButton,
  #VotePrize ~ #goHomeButton,
  #VoteActivity ~ #goHomeButton,
  #VoteRank ~ #goHomeButton,
  #VoteDetail ~ #goHomeButton,
  #MyPrize ~ #goHomeButton,
  #EnrollOffice ~ #goHomeButton,
  #LuckDraw ~ #goHomeButton,
  #shopingDetail ~ #goHomeButton,
  #shopingComment ~ #goHomeButton,
  #shopingCommentDetial ~ #goHomeButton,
  #Star ~ #goHomeButton {
    display: none;
  }

  #Register .weui-cell:before,
  #Login .weui-cell:before,
  #ForgetPass .weui-cell:before {
    border: none;
  }

  #Register .weui-cell,
  #Login .weui-cell,
  #ForgetPass .weui-cell {
    padding: 0 !important;
    height: 1.52rem !important;
    line-height: 1.52rem !important;
    float: left;
    width: 86%;
    margin-left: 0.53rem;
    font-size: 0.4rem;
  }

  #Login .weui-cell {
    width: 70%;
  }

  #Register .weui-input,
  #Login .weui-input,
  #ForgetPass .weui-input {
    color: #333 !important;
  }

  #Register input::-webkit-input-placeholder,
  #Login input::-webkit-input-placeholder,
  #ForgetPass input::-webkit-input-placeholder {
    color: #ccc;
  }

  #goHomeButton {
    position: fixed;
    right: 0.4rem;
    bottom: 2.5rem;
    z-index: 888;
    width: 1.6rem;
    height: 1.6rem;
  }

  #goHomeButton img {
    width: 1.6rem;
    height: 1.6rem;
  }

  /*去掉输入框的阴影*/

  input,
  textarea {
    border: 0;
    -webkit-appearance: none;
  }

  #app {
    font-family: "Avenir", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.26666rem;
    height: 100%;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  a {
    text-decoration: none;
    color: #333;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: normal;
  }

  .vux-header {
    background: #333;
  }

  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }

  input[type=button],
  input[type=submit],
  input[type=file],
  button {
    cursor: pointer;
    -webkit-appearance: none;
  }

  input[type="number"] {
    -moz-appearance: textfield;
  }

  input:focus {
    outline: none;
  }

  ul,
  li {
    list-style: none;
  }

  html,
  body {
    height: 100%;
    width: 100%;
    background-color: #f3f3f3 !important;
    color: #333;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  /*微信登录绑定手机号*/

  .smsWrap {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    padding: 0 0.4rem;
    top: 0;
    z-index: 10000;
  }

  .smsWrapActive {
    overflow: hidden;
  }

  .getSms .weui-mask {
    background: rgba(0, 0, 0, 0.7);
  }

  .getSms .weui-dialog {
    width: 90%;
    max-width: 400px;
  }

  .getSms {
    background: #fff;
    position: absolute;
    margin: 4rem 0 0;
    height: 8rem;
    border-radius: 0.1rem;
  }

  .getSms .checkTitle {
    height: 1.44rem;
    background: #f3f3f3;
    width: 100%;
    line-height: 1.44rem;
    border-top-left-radius: 0.1rem;
    border-top-right-radius: 0.1rem;
  }

  .getSms .uploadTel b {
    font-weight: normal;
    font-size: 0.42rem;
    color: #333;
    margin-right: 0.66rem;
    padding-left: 0.26rem;
  }

  .getSms .checkTitle p {
    font-size: 0.4rem;
    color: #333;
    padding: 0 0.26rem;
  }

  .getSms .uploadTel,
  .getSms .sms {
    text-align: left;
    height: 1.44rem;
    line-height: 1.44rem;
    background: #fff;
    border-bottom: 1px solid #f3f3f3;
  }

  .getSms .uploadTel input,
  .getSms .sms input {
    font-size: 0.4rem;
    color: #333;
    height: 1.36rem;
    line-height: 1.36rem;
  }

  .getSms .sms input {
    padding-left: 0.26rem;
  }

  .getSms .sms span {
    font-size: 0.4rem;
    color: #a30000;
    float: right;
    padding-right: 0.26rem;
  }

  .getSms button {
    width: 8.53rem;
    height: 1.17rem;
    background: #a30000;
    display: block;
    text-align: center;
    margin: 1rem auto;
    border: none;
    color: #fff;
    font-size: 0.48rem;
    border-radius: 0.1rem;
  }

  /*关注图片显示*/

  #attenImg b {
    font-size: 0.4rem;
    line-height: 0.4rem;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    margin: 0.26rem 0 0.37rem 0;
    display: block;
  }

  #attenImg {
    overflow: hidden;
  }

  #attenImg .proInfo {
    font-size: 0.37rem;
    line-height: 0.5rem;
    padding: 0.26rem;
  }

  #attenImg img {
    padding: 0.26rem;
    width: 100%;
    height: 100%;
  }

  .atten_overlay {
    /*display: none;*/
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    z-index: 1001;
    overflow: hidden;
  }

  .atten_content {
    position: absolute;
    top: 1.8rem;
    left: 0.64rem;
    height: 12rem;
    width: 8.77rem;
    margin: 0 auto;
    border-radius: 0.13rem;
    z-index: 1002;
    overflow: auto;
  }

  .nextPage {
    width: 8.56rem;
    height: 1.3rem;
    left: 0.72rem;
    background: #a30000;
    color: #fff;
    line-height: 1.3rem;
    text-align: center;
    border-radius: 0.05rem;
    font-size: 0.4rem;
    margin: 2rem auto 0.4rem;
  }

  .atten_content .close {
    background: #a30000;
    height: 1rem;
    display: block;
    width: 100%;
    color: #fff;
    font-size: 0.4rem;
    line-height: 1rem;
    text-align: center;
  }

  #BalanceDeposit .check .weui-icon-success:before,
  #SellerSignup .check .weui-icon-success:before {
    color: #eb624f !important;
  }

  #foot .weui-tabbar:before {
    border-top: solid 1px #f6f6f6 !important;
  }

  #ShopPage .weui-mask {
    background: #666;
  }

  #ShopPage .weui-dialog {
    width: 80%;
    max-width: 8rem;
  }

  #SendSale .vux-x-dialog .weui-mask {
    background: rgba(0, 0, 0, 0.3) !important;
  }

  #Identify .weui-grid__icon {
    width: 1.41rem !important;
    height: 1.41rem !important;
  }

  #Identify .main .scroll .weui-cell__ft {
    text-align: left !important;
  }

  #Identify .search-box .weui-search-bar:after {
    border: none;
  }

  #Identify .search-box .weui-search-bar__label {
    line-height: 0.7rem !important;
    height: 0.7rem !important;
  }

  .search-box .weui-search-bar .weui-search-bar__form {
    background: none;
  }

  #Search .search-box .weui-cells:before {
    border: none !important;
  }

  #UserCert .shopAdd .vux-cell-value {
    font-size: 0.37rem;
  }

  #UserCert .weui-dialog__btn_primary,
  #StoreCert .weui-dialog__btn_primary {
    color: #a30000;
  }

  #PaymentPage .delivery .type .weui-cell {
    padding: 0 !important;
  }

  #PaymentPage .delivery .type .weui-cell:before {
    border: none;
  }

  #PaymentPage .delivery .type .weui-icon-checked:before {
    color: #a30000;
  }

  #Identify .main .scroll .weui-cells:before,
  #Identify .main .scroll .weui-cells:after,
  #Identify .main .scroll .weui-cell:before,
  #Home .scroll .weui-cell:before,
  #Home .scroll .weui-cell:after {
    border: none !important;
  }

  #Home .scroll .weui-cell__ft {
    font-size: 0.34rem;
    color: #5e5e5e;
  }

  #Identify .weui-icon-search {
    display: none !important;
  }


  #Identify .main .scroll .vux-cell-primary,
  #Home .scroll .vux-cell-primary {
    width: 1.5rem;
    float: left;
    margin-right: 0.53rem;
    flex: none;
  }

  #Identify .weui-search-bar {
    background: #fff;
  }

  #Identify .vux-search-box {
    width: 80%;
    background: #fff;
  }

  #Identify .weui-search-bar__form:after {
    border: none !important;
  }

  #head .vux-button-group > a {
    font-size: 0.45rem;
    height: 0.8rem;
  }

  #Home .scroll .weui-cells:before,
  #Home .scroll .weui-cells:after {
    border: none !important;
  }

  #Home .vux-marquee {
    width: 82%;
    float: right;
    line-height: 1.17rem;
    font-size: 0.34rem;
    color: #5e5e5e;
  }

  #Complain .title .weui-cells:before {
    border: none !important;
  }

  #Complain .title .weui-cells .weui-cell:before {
    border: none !important;
  }

  #Complain .vux-label {
    font-size: 0.4rem !important;
    color: #777;
  }

  #Complain .weui-cell__ft {
    font-size: 0.4rem !important;
    color: #333;
  }

  #Complain .weui-cell_access .weui-cell__ft:after {
    content: "";
    display: inline-block;
    height: 6px;
    width: 6px;
    border-width: 2px 2px 0 0;
    border-color: #C8C8CD;
    border-style: solid;
    -webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
    transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
    position: relative;
    top: -2px;
    position: absolute;
    top: 50%;
    margin-top: -4px;
    right: 2px;
  }

  #Export .vux-cell-primary {
    width: 100%;
    text-align: center;
  }

  #Export .vux-cell-primary p {
    width: 100% !important;
  }

  #Export .children .weui-cells {
    height: 100%;
  }

  #Export .slide .weui-cell__bd p {
    width: 100% !important;
  }

  #Export .weui-icon-checked:before {
    color: #a30000 !important;
  }

  #Export .children .vux-radio-label:active {
    color: #a30000 !important;
  }

  #IncomeAddIdentify .weui-cell {
    padding: 0 !important;
  }

  #IncomeAddIdentify .weui-cell:before,
  #BalanceDeposit .weui-cell:before {
    border: none;
  }

  #BalanceDeposit .weui-cell {
    float: right;
    text-align: left;
    height: 0.84rem;
    line-height: 0.84rem;
    margin-top: 0.26rem;
    width: 90%;
    font-size: 0.84rem;
  }

  .weui-tabbar:before {
    border-color: #e6e6e6 !important;
  }

  .weui-tabbar__item {
    padding: 0.24rem 0 0.18666rem !important;
  }

  .weui-tabbar__icon {
    width: 0.56rem !important;
    height: 0.56rem !important;
    margin-bottom: 0.16rem;
  }

  .weui-tabbar__label {
    font-size: 0.26666rem !important;
    line-height: 1 !important;
  }

  .weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon,
  .weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon > i,
  .weui-tabbar__item.weui-bar__item_on .weui-tabbar__label {
    color: #a30000 !important;
  }

  .vux-button-group > a {
    background: transparent !important;
  }

  .vux-button-group > a.vux-button-tab-item-first:after,
  .vux-button-group > a.vux-button-tab-item-last:after {
    border: none !important;
  }

  .vux-button-group > a.vux-button-group-current {
    color: #A30000 !important;
  }

  .vux-button-group > a.vux-button-group-current:before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -9px;
    width: 18px;
    height: 2px;
    background-color: #A30000;
    border-radius: 1px;
    display: block;
  }

  .vux-slider > .vux-indicator > a > .vux-icon-dot,
  .vux-slider .vux-indicator-right > a > .vux-icon-dot {
    background-color: #ccc !important;
  }

  .vux-slider > .vux-indicator > a > .vux-icon-dot.active,
  .vux-slider .vux-indicator-right > a > .vux-icon-dot.active {
    background-color: #fff !important;
  }

  .weui-toast__content {
    font-size: 0.34666rem;
  }

  .weui-grid:active {
    background-color: transparent !important;
  }

  /*banner下去掉下划线*/

  .menu-list .weui-grids:before {
    border: none !important;
  }

  .menu-list .scroll .weui-cells {
    height: 1.17rem !important;
    line-height: 1.17rem !important;
  }

  /*popup弹窗*/

  .my-popup {
    background-color: #fff;
    width: 100%;
  }

  .my-popup .title {
    position: relative;
    height: 1.44rem;
    text-align: center;
    font-size: 0.42666rem;
    line-height: 1.44rem;
    border-bottom: solid 1px #eee;
  }

  .my-popup .title .close {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -0.21rem;
    right: 0.2rem;
    width: 0.42rem;
    height: 0.42rem;
    background: url(../src/assets/images/home/ic_close.png) center center no-repeat;
    background-size: 100%;
    opacity: .5;
  }

  .my-popup .body {
    overflow: hidden;
  }

  .my-popup .body ul.list {
    overflow: hidden;
  }

  .my-popup .body ul.list li {
    padding: 0 0.26666rem;
    height: 1.30666rem;
    font-size: 0.4rem;
    line-height: 1.30666rem;
    border-bottom: solid 1px #e6e6e6;
  }

  .my-popup .body .other {
    padding: 2.66666rem 0.26666rem 0.53333rem;
    text-align: center;
  }

  .my-popup .body .other p {
    margin-bottom: 0.2rem;
    color: #999;
    font-size: 0.32rem;
  }

  /*#FlowProgress .progress .weui-wepay-flow__state,
    #FlowProgress .progress .weui-wepay-flow__process,
    #FlowProgress .progress [class^="weui-wepay-flow__info-"] {
        background: #ff5b59;
    }*/

  #FlowProgress .weui-wepay-flow__li_done .weui-wepay-flow__state,
  #FlowProgress .weui-wepay-flow__process {
    background: #ff5b59;
  }

  #FlowProgress .progress .weui-wepay-flow__info-top:after {
    border-color: #ff5b59 transparent transparent transparent;
  }

  #FlowProgress .progress [class^="weui-wepay-flow__info-"] {
    width: 1.33rem;
    height: 0.53rem;
    line-height: 0.53rem;
    text-align: center;
    border-radius: 0.24rem;
  }

  #VoteDetail .share-wrap .weui-dialog {
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-width: 100% !important;
    background: rgba(0, 0, 0, 0.3);
  }

  #VoteDetail .share-wrap .weui-dialog img {
    float: right;
    margin-right: 0.53rem;
    width: 70%;
    height: 50%;
  }

  #VoteDetail .weui-dialog__btn_primary,
  #VoteActivity .weui-dialog__btn_primary,
  #LuckDraw .weui-dialog__btn_primary {
    color: #a30000;
  }

  /*公共*/

  .left {
    float: left;
  }

  .right {
    float: right;
  }

  .my-txt-color1 {
    color: #A30000;
  }

  .my-button {
    font-size: 0.42666rem;
    color: #fff;
    height: 1.30666rem;
    line-height: 1.30666rem;
    border-radius: 0.05333rem;
    background-color: #A30000;
    display: block;
  }

  /*头部*/

  .header.vux-header .vux-header-left {
    left: 15px;
  }

  .header .header-overwrite-title {
    padding: 5px 0;
  }

  .header.vux-header-title-area,
  .header.vux-header .vux-header-title {
    color: #333;
  }

  .header.vux-header .vux-header-title span {
    font-size: 0.45333rem;
  }

  /*
     * 	作者：Marten
        邮箱：873546057@qq.com
        时间：2018-05-12
        描述：我的公共重置
       */

  .count-down .endtxt,
  .count-down .starttxt {
    margin-right: 0.13333rem;
  }

  .count-down .tiptxt {
    font-size: 0.26666rem;
  }

  /*首页标题*/

  .title-box {
    padding: 0.45333rem 0;
    text-align: center;
    font-weight: normal;
  }

  .title-box .index-title {
    position: relative;
    padding: 0 0.2rem;
    font-size: 0.4rem;
    display: inline-block;
  }

  .title-box .index-title:after,
  .title-box .index-title:before {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -0.09rem;
    background-color: #A30000;
    width: 0.05333rem;
    height: 0.16rem;
    display: block;
    border-radius: 1px;
  }

  .title-box .index-title:after {
    right: 0;
  }

  .title-box .index-title:before {
    left: 0;
  }

  /*重置tabbar*/

  .vux-1px:after,
  .vux-1px-b:after,
  .vux-1px-t:before,
  .vux-1px-l:after,
  .vux-1px-t:after,
  .vux-1px-r:after,
  .vux-1px-tb:after {
    border-color: #e6e6e6 !important;
  }

  .vux-tab {
    height: 1.17rem !important;
  }

  .vux-tab .vux-tab-item {
    font-size: 0.4rem !important;
    line-height: 1.17rem !important;
  }

  .vux-tab .vux-tab-item.vux-tab-selected {
    color: #A30000 !important;
  }

  .vux-tab-bar-inner {
    width: 0.8rem !important;
  }

  /*底部*/

  .footer {
    background-color: #fff !important;
  }

  /*textarea样式修改*/

  .weui-cells {
    margin: 0 !important;
  }

  .weui-cell {
    padding: 0.34rem 0 !important;
    color: #333;
    font-size: 0.34rem;
  }

  .textarea .weui-cells:before,
  .textarea .weui-cells:after {
    border: none !important;
  }

  .vux-cell-value {
    color: #777 !important;
  }

  .vux-popup-picker-select {
    text-align: left !important;
  }

  .startPrice .weui-cell__hd {
    width: 3.01rem;
  }

  .startPrice .weui-cell_access .weui-cell__ft:after {
    display: none !important;
  }

  .vux-header .vux-header-title {
    color: #333 !important;
  }

  .vux-popup-header-right {
    color: #a30000 !important;
  }

  .startPrice .vux-popup-picker-value {
    color: #333 !important;
    margin-left: 0.26rem;
  }

  .vux-check-icon > .weui-icon-success:before,
  .vux-check-icon > .weui-icon-success-circle:before {
    color: #a30000 !important;
  }

  #WriteLogistics .cert-content > ul li .weui-cell .weui-label {
    font-size: 0.37rem;
    color: #333;
    width: 2.1rem !important;
  }

  #ClientReturnFlow .cert-content > ul li .weui-cell .weui-label {
    font-size: 0.4rem;
    color: #222;
    width: 2.1rem !important;
  }

  /*
     * 	作者：Marten
        邮箱：873546057@qq.com
        时间：2018-05-12
        描述：我的公共重置
       */
  /*5/15添加*/

  .dp-container .dp-header .vux-datetime-clear,
  .dp-container .dp-header .vux-datetime-confirm {
    color: #a30000 !important;
  }

  .vux-loading .weui-toast {
    min-width: 11em !important;
    min-height: 11em !important;
  }

  .weui-toast__content {
    font-size: 14px !important;
  }

  .selling .count-down .endtxt,
  .selling .count-down .starttxt {
    font-size: 0.26rem !important;
    display: inline-block;
  }

  #addForm .vux-popup-picker-select-box {
    margin-top: 0.13rem !important;
  }

  /*5.18*/

  .cert-content .weui-cell__primary input {
    font-size: 0.37rem;
    color: #777;
  }

  .shopInfo .timer .count-down {
    color: #a30000;
  }

  .shopInfo .pay_bar .count-down {
    color: #1874DA;
  }

  .shopInfo .assess .count-down {
    color: #aaa;
  }

  .shopInfo .pay_bar p b {
    background: #1874DA !important;
  }

  /*选择样式*/

  #Complain .weui-cells_checkbox .weui-check:checked + .vux-checklist-icon-checked:before {
    color: #a30000;
  }

  /*修改资料页面*/

  #UserInfo .vux-radio-label {
    color: #333 !important;
  }

  #UserInfo ..vux-popup-dialog {
    background: ;
  }

  #UserInfo .weui-cells_radio .weui-check:checked + .weui-icon-checked:before {
    color: #a30000 !important;
  }

  #AllOrder .weui-dialog__btn_primary,
  #SendSale .weui-dialog__btn_primary {
    color: #A30000 !important;
  }

  #Zone .list .title-bar .count-down .endtxt,
  #Zone .list .title-bar .count-down .starttxt,
  #Detail .endtime .count-down .endtxt,
  #Detail .endtime .count-down .starttxt,
  #Detail .endtime .count-down .tiptxt,
  .shopInfo .timer p .count-down .starttxt,
  .shopInfo .timer p .count-down .endtxt,
  .advance .left .count-down .endtxt,
  .advance .left .count-down .starttxt,
  #OrderInfo .count-down .endtxt,
  #OrderInfo .count-down .starttxt,
  #OrderInfo .count-down .tiptxt {
    font-size: 0.34rem !important;
    display: inline-block;
  }

  #Zone .list .title-bar .count-down .endtxt,
  #Zone .list .title-bar .count-down .starttxt,
  #Zone .list .title-bar .count-down .day,
  #Zone .list .title-bar .count-down .hour,
  #Zone .list .title-bar .count-down .minute,
  #Zone .list .title-bar .count-down .seconds,
  #Zone .list .title-bar .count-down i,
  #OrderInfo .count-down .day,
  #OrderInfo .count-down .hour,
  #OrderInfo .count-down .minute,
  #OrderInfo .count-down .seconds,
  #OrderInfo .count-down i,
  .shopInfo .timer p .count-down .starttxt,
  .shopInfo .timer p .count-down .endtxt,
  .shopInfo .timer p .count-down .day,
  .shopInfo .timer p .count-down .hour,
  .shopInfo .timer p .count-down .minute,
  .shopInfo .timer p .count-down .seconds,
  .shopInfo .timer p .count-down i,
  #Detail .endtime .count-down .day,
  #Detail .endtime .count-down .hour,
  #Detail .endtime .count-down .minute,
  #Detail .endtime .count-down .seconds,
  #Detail .endtime .count-down i {
    font-size: 0.34rem !important;
  }

  .list-wrap ul li .desc .count-down .endtxt,
  .list-wrap ul li .desc .count-down .starttxt,
  .list-wrap ul li .desc .count-down .tiptxt {
    display: inline-block;
    font-size: 0.34rem;
  }

  .list-wrap ul li .desc .count-down .day,
  .list-wrap ul li .desc .count-down .hour,
  .list-wrap ul li .desc .count-down .minute,
  .list-wrap ul li .desc .count-down .seconds,
  .list-wrap ul li .desc .count-down i {
    font-size: 0.34rem !important;
  }

  #VoteRank .count .count-down .endtxt,
  #VoteRank .count .count-down .starttxt,
  #VoteRank .count .count-down .tiptxt,
  #VoteRank .count .count-down i,
  #EnrollOffice .count .count-down .endtxt,
  #EnrollOffice .count .count-down .starttxt,
  #EnrollOffice .count .count-down .tiptxt,
  #VoteActivity .count .count-down .endtxt,
  #VoteActivity .count .count-down .starttxt,
  #VoteActivity .count .count-down .tiptxt,
  #VoteActivity .count .count-down .endtxt,
  #VoteActivity .count .count-down .starttxt,
  #VoteActivity .count .count-down i,
  #EnrollOffice .count .count-down i {
    display: inline-block;
    font-size: 0.37rem;
  }

  #EnrollOffice .count .count-down .day span,
  #EnrollOffice .count .count-down .hour span,
  #EnrollOffice .count .count-down .minute span,
  #EnrollOffice .count .count-down .seconds span,
  #VoteRank .count .count-down .day span,
  #VoteRank .count .count-down .hour span,
  #VoteRank .count .count-down .minute span,
  #VoteRank .count .count-down .seconds span {
    display: inline-block;
    font-size: 0.37rem;
    width: 0.56rem;
    height: 0.56rem;
    line-height: 0.56rem;
    background: #bb6362;
    border-radius: 0.05rem;
    color: #fff;
  }

  #VoteActivity .count .count-down {
    font-size: 0.37rem;
    color: #fff;
    line-height: 1.3rem;
    padding-top: 0.15rem;
  }

  #VoteActivity .count .count-down .day span,
  #VoteActivity .count .count-down .hour span,
  #VoteActivity .count .count-down .minute span,
  #VoteActivity .count .count-down .seconds span {
    display: inline-block;
    font-size: 0.37rem;
    width: 0.56rem;
    height: 0.56rem;
    line-height: 0.56rem;
    background: #5b3131;
    border-radius: 0.05rem;
    color: #fff;
  }

  /*付款页*/

  .right .calculator {
    height: 0.56rem;
  }

  .right .calculator .weui-cell {
    padding: 0 !important;
  }

  .right .calculator .vux-number-selector {
    width: 0.64rem !important;
    height: 0.56rem !important;
    background: #fff;
    padding: 0;
  }

  .right .calculator .vux-number-selector svg {
    fill: #ccc;
    width: 100%;
    height: 100%;
  }

  .right .calculator .vux-number-input {
    height: 0.56rem;
    padding: 0;
    font-size: 0.32rem;
    color: #333;
  }

  /*秒杀详情进度条*/

  #Zone .weui-progress__bar {
    background: #fff0f0;
  }

  .statis .weui-progress__bar {
    height: 0.21rem;
    line-height: 0.21rem;
    background: #eee;
    border-radius: 0.16rem;
  }

  .statis .weui-progress__inner-bar {
    background-color: #ffc73e;
    border-top-left-radius: 0.16rem;
    border-bottom-left-radius: 0.16rem
  }

  #addForm .block .vux-popup-picker-value {
    width: 100%;
    overflow: hidden;
    margin-left: 0 !important;
    color: #333 !important;
  }

  #addForm .weui-cells {
    border-bottom: none;
  }

  #addForm .name .weui-cell {
    height: 1.3rem !important;
    padding: 0 0.26rem !important;
  }

  #addForm .weui-cells:after {
    border: none !important;
  }

  #addForm .name,
  #addForm .vux-no-group-title {
    padding: 0 0.26rem !important;
  }

  .text .weui-cell {
    height: 2.8rem !important;
  }

  .text .weui-cell textarea {
    padding: 0.26rem;
  }

  #Complain .title .weui-cells:before,
  #Complain .title .weui-cells:after {
    border: none;
  }

  #Complain .title .slide .weui-cells:before {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid #D9D9D9;
    color: #D9D9D9;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
  }

  #Complain .textarea .weui-textarea {
    padding: 0.26rem;
    height: 120px !important;
  }

  #Complain .textarea .weui-textarea-counter {
    padding: 0 0.26rem;
  }

  #Complain .textarea .weui-cells {
    height: 100%;
  }

  #Complain .textarea .weui-cell {
    padding: 0 !important;
  }

  #addForm .vux-x-textarea {
    padding: 0 !important;
  }

  #addForm .address .weui-cells:before {
    border-top: solid 1px #f3f3f3;
  }

  #Upload .textarea .weui-textarea {
    padding: 0 !important;
  }

  #Upload .classify .vux-label,
  #Upload .book .vux-label {
    color: #333;
  }

  #Upload .classify .weui-cells:before,
  #Upload .book .weui-cells:before {
    border-top: none !important;
    border-bottom: none !important;
  }

  #Upload .book .weui-cells:after {
    border-bottom: none !important;
  }

  #Upload .dialog .weui-cells_checkbox .weui-cell__bd p {
    color: #333 !important;
  }

  #Upload .weui-cells_checkbox .weui-icon-checked:before {
    font-size: 16px;
  }

  #Upload .vux-checklist-icon-checked:before {
    color: #a30000;
  }

  #Upload .classify .weui-cell__ft,
  #Upload .book .weui-cell__ft {
    position: absolute;
    right: 0.45rem;
  }

  #Upload .dialog .weui-cells {
    height: 4rem;
  }

  #Application .textarea .weui-textarea {
    padding-left: 0.26rem;
  }

  #ZoneDetail .zone-info .count-down .starttxt,
  #ZoneDetail .zone-info .count-down .endtxt {
    font-size: 0.29rem;
    padding-bottom: 0.16rem;
    line-height: 1;
    text-align: center;
  }

  #AllOrder .shopInfo .timer .count-down .tiptxt {
    font-size: 0.34rem !important;
  }

  #SellerOrderInfo .flow-wrap .weui-dialog {
    width: 90% !important;
    max-width: 400px !important;
    height: 6rem;
    background: none;
  }

  #ClientReturn .weui-actionsheet,
  #ClientReturnFlow .weui-actionsheet,
  #SellerReturn .weui-actionsheet {
    width: 94%;
    margin-left: 0.26rem;
    background: none !important;
    bottom: 0;
  }

  #ClientReturn .weui-textarea-counter {
    line-height: normal !important;
  }

  #ClientReturn .weui-actionsheet__menu,
  #ClientReturnFlow .weui-actionsheet__menu,
  #SellerReturn .weui-actionsheet__menu {
    border-radius: 0.21rem;
  }

  #SellerReturn .vux-actionsheet-menu-default {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  #ClientReturn .weui-actionsheet__action,
  #ClientReturnFlow .weui-actionsheet__action,
  #SellerReturn .weui-actionsheet__action {
    border-radius: 0.21rem;
    margin-bottom: 0.26rem;
  }

  #ClientReturn .reason .weui-actionsheet__cell {
    padding: 0 !important;
    height: 1.44rem;
    line-height: 1.44rem;
    font-size: 0.45rem;
  }

  #ClientReturn .other-reason .vux-actionsheet-menu-default:first-child {
    padding: 0.45rem 1rem !important;
  }

  #ClientReturn .weui-cell:before {
    border: none !important;
  }

  #ClientReturn .text {
    padding: 0 0.26rem !important;
    background: #fff;
    color: #222;
    height: 3.4rem !important;
  }

  #ClientReturn .text .weui-textarea {
    background: #f6f6f6;
    height: 2.66rem;
    padding: 0.26rem;
    font-size: 0.37rem;
  }

  #ClientReturn .text .weui-textarea::-webkit-input-placeholder {
    color: #aaa;
  }

  #ClientReturn .text .weui-textarea-counter {
    background: #f6f6f6;
    padding: 0.26rem;
  }

  #SellerReturn .reason-wrap .receive li .weui-cell {
    padding: 0 !important;
  }

  #Publish .header .vux-header-right a {
    color: #222 !important;
    font-size: 0.4rem;
  }

  /*//商城头部*/
  .shoping-header {
    height: 1.173333rem;
    line-height: 1.173333rem;
    background-color: #fff;
    color: #222;
    font-size: 0.4rem;
    width: 100%;
    z-index: 999;
    transform: all 1s;
    position: relative;
    padding: 0 0.4rem;
    box-sizing: border-box;
    border-bottom: solid 0.013333rem #f3f3f3;
  }

  .shoping-header img {
    display: block;
    width: 0.88rem;
    height: 0.88rem;
    margin-top: 0.173333rem;
    /*margin-left: 0.4rem;*/
    margin-right: 1.733333rem;
  }

  .shoping-header-list {
    width: 4.8rem;
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    text-align: center;
    margin-left: -2.4rem;
  }

  .shoping-header-share {
    width: 0.88rem;
    height: 0.88rem;
    margin-top: 0.173333rem;
  }

  .shoping-header-share img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .shoping-header-more {
    width: 0.88rem;
    height: 0.88rem;
    margin-top: 0.173333rem;
    margin-left: 0.213333rem;
  }

  .shoping-header-more img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
  }
</style>
